<template>
  <div class="dashboard-container">
    <!-- <div class="main-title">全局监控</div> -->
    <section class="flex">
      <menu-info @showDashboard="showDashboard" />
      <div class="main-dashboard flex-1" />
    </section>
  </div>
</template>

<script>
import { mapGetters } from "vuex"
import MenuInfo from "./components/MenuInfo.vue"

export default {
  name: "DashboardEditor",
  components: { MenuInfo },
  data() {
    return {}
  },
  computed: {
    ...mapGetters(["name", "avatar", "roles"])
  },
  methods: {
    showDashboard(menu) {
      alert(menu.name)
    }
  }
}
</script>

<style lang="scss" scoped>
.main-title {
  margin: 15px 15px 25px;
}
.emptyGif {
  display: block;
  width: 45%;
  margin: 0 auto;
}

.dashboard-container {
  background-color: #fff;
  min-height: 100%;
  padding: 5px 20px 5px;
  .main-dashboard {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-left: 10px;
  }
}
</style>
